/**
 * @param aircraft { Aircraft }
 * @returns { Weapon }
 */
Weapon = function( aircraft )
{
    
    this.aircraft = aircraft;

    this.name = "Basic Weapon";
    
    this.munitions = 10;
        
    this.pullTrigger = function()
    {
        if ( this.isHaveMunitions() )
        {
            
            this.shoot = function()
            {
                core.add( this.loadShot() );
                
                this.munitions--;
            };
            
           this.shoot();
        }
    };          
    
    this.isHaveMunitions = function()
    {
        return this.munitions > 0;
    };
    
    
    
    this.reload = function()
    {
        this.munitions = 10;
    };
    
    this.loadShot = function()
    {
        return new Shot( this, "img/shell-16x16.png" );  
    };
    
};